<?php 
$url = new Url();
$controller = Yii::app()->controller->id;
$action = Yii::app()->controller->action->id; 
?>
<div id="header">
    <div class="main clearfix">
        <div class="left"><h1 class="logo"><a href="<?=$url->createUrl("home/index")?>"><img src="<?=Yii::app()->params["urlRsAdmin"] ?>/images/logo.gif" width="203" height="77" align="logo" /></a></h1></div>
        <div class="right-main">
            <div class="righ-cont">
                <div class="right">
                    <ul class="nav clearfix"> 
                        <li><a class="<?=$controller=="ketqua" ? "active":"" ?>" href="<?=$url->createUrl("trongngay/index")?>"><span><b>Kết quả Xổ số</b></span></a>
                            <ul class="sub-nav">               
                                <li><a href="<?=$url->createUrl("trongngay/index") ?>"><span><b>Kết quả xổ số trong ngày</b></span></a></li>
                                <li><a href="<?=$url->createUrl("ketqua/index") ?>"><span><b>Bảng kết quả</b></span></a></li>
                            </ul>
                        </li>
                        <li><a class="<?=$controller=="thode" ? "active":"" ?>" href="<?=$url->createUrl("thode/index")?>"><span><b>Sổ mơ</b></span></a>
                            <ul class="sub-nav">               
                                <li><a href="<?=$url->createUrl("thode/index")?>"><span><b>Danh sách</b></span></a></li>
                                <li><a href="<?=$url->createUrl("thode/create")?>"><span><b>Thêm mới</b></span></a></li>
                            </ul>
                        </li>
                        <li><a class="<?=$controller=="lode" ? "active":"" ?>" href="<?=$url->createUrl("lode/index")?>"><span><b>LoDo Game</b></span></a>
                            <ul class="sub-nav">               
                                <li><a href="<?=$url->createUrl("lode/index")?>"><span><b>Lodo game trong ngày</b></span></a></li>
                                <li><a href="<?=$url->createUrl("lode/winner")?>"><span><b>Danh sách trúng thưởng</b></span></a></li>
                                <li><a href="<?=$url->createUrl("lode/congso")?>"><span><b>Cộng sổ</b></span></a></li>
                                <li><a href="<?=$url->createUrl("lode/thongke")?>"><span><b>Thống kê</b></span></a></li>
                                <li><a href="<?=$url->createUrl("lode/giaithuong")?>"><span><b>Bảng giải thưởng</b></span></a></li>
                            </ul>
                        </li>
                        <li>
                        <a class="<?=$controller=="user" ? "active":"" ?>" href="<?=$url->createUrl("user/index")?>"><span><b>Thành viên </b></span></a>
                            <ul class="sub-nav">               
                                <li><a href="<?=$url->createUrl("user/index")?>"><span><b>Danh sách</b></span></a></li>
                                <li><a href="<?=$url->createUrl("user/create")?>"><span><b>Thêm mới</b></span></a></li>
                                <li><a href="<?=$url->createUrl("user/lichsu")?>"><span><b>Lịch sử giao dịch</b></span></a></li>
                                <li><a href="<?=$url->createUrl("messenger/index")?>"><span><b>Gửi tin nhắn cho thành viên</b></span></a></li>
                            </ul>
                        </li>
                        <li>
                            <a class="<?=$controller=="dudoan" ? "active":"" ?>" href="<?=$url->createUrl("dudoan/index")?>"><span><b>Dự đoán</b></span></a>
                            <ul class="sub-nav">               
                                <li><a href="<?=$url->createUrl("dudoan/index")?>"><span><b>Nhập kết quả</b></span></a></li>
                                <li><a href="<?=$url->createUrl("dudoan/lichsu")?>"><span><b>Lịch sử dự đoán</b></span></a></li>
                            </ul>                        
                        </li>                        
                        <li>
                            <a class="<?=$controller=="services" ? "active":"" ?>" href="<?=$url->createUrl("services/index")?>"><span><b>Dịch vụ</b></span></a>
                            <ul class="sub-nav">               
                                <li><a href="<?=$url->createUrl("services/index")?>"><span><b>Quản trị dịch vụ</b></span></a></li>
                                <li><a href="<?=$url->createUrl("doithuong/index")?>"><span><b>Sản phẩm đổi thưởng</b></span></a></li>
                                <li><a href="<?=$url->createUrl("doithuong/bill")?>"><span><b>Hóa đơn</b></span></a></li>
                            </ul>                        
                        </li>
                        <li><a class="<?=$controller=="admin" ? "active":"" ?>" href="<?=$url->createUrl("admin/index")?>"><span><b>Quản lý Admin</b></span></a></li>
                        <li class="last"><a href="<?=$url->createUrl("admin/logout") ?>"><span><b>Hi <?=Yii::app()->user->name ?> / Log out</b></span></a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- End main--> 
</div>
